

// 约定: red先
// red  X   白
// blue O
const Chess = {
    EMPTY:0,
    WHITE:1,
    BLACK:2,
};


const GW = 15;
const GH = 15;

function createBoard() {
    let board = [];
    for(let i = 0; i < GH; ++i ){
        board[i] = [];
        for(let j = 0; j < GW; ++j){
            board[i][j] = Chess.EMPTY;
        }
    }
    return board;
}




let board;
window.onload = function () {
     board = createBoard();
};



